package com.example.springdemo.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
;

/**
 * 用户注册信息对象 users
 * 
 * @author ruoyi
 * @date 2025-06-12
 */
public class Users extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户唯一ID */
    private String userid;

    /** 登录用户名 */

    private String username;

    /** 密码 */

    private String passwordhash;

    /** 邮箱地址 */
    private String email;

    /** 手机号码 */
    private String phone;

    /** 真实姓名 */
    private String realname;

    /** 头像URL */
    private String avatarurl;

    /** 用户性别 */
    private Long gender;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthdate;

    /** 注册IP地址 */
    private String registerip;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date lastlogintime;

    /** 用户账号状态 */
    private Long accountstatus;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createdat;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updatedat;

    public void setUserid(String userid) 
    {
        this.userid = userid;
    }

    public String getUserid() 
    {
        return userid;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPasswordhash(String passwordhash) 
    {
        this.passwordhash = passwordhash;
    }

    public String getPasswordhash() 
    {
        return passwordhash;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setRealname(String realname) 
    {
        this.realname = realname;
    }

    public String getRealname() 
    {
        return realname;
    }
    public void setAvatarurl(String avatarurl) 
    {
        this.avatarurl = avatarurl;
    }

    public String getAvatarurl() 
    {
        return avatarurl;
    }
    public void setGender(Long gender) 
    {
        this.gender = gender;
    }

    public Long getGender() 
    {
        return gender;
    }
    public void setBirthdate(Date birthdate) 
    {
        this.birthdate = birthdate;
    }

    public Date getBirthdate() 
    {
        return birthdate;
    }
    public void setRegisterip(String registerip) 
    {
        this.registerip = registerip;
    }

    public String getRegisterip() 
    {
        return registerip;
    }
    public void setLastlogintime(Date lastlogintime) 
    {
        this.lastlogintime = lastlogintime;
    }

    public Date getLastlogintime() 
    {
        return lastlogintime;
    }
    public void setAccountstatus(Long accountstatus) 
    {
        this.accountstatus = accountstatus;
    }

    public Long getAccountstatus() 
    {
        return accountstatus;
    }
    public void setCreatedat(Date createdat) 
    {
        this.createdat = createdat;
    }

    public Date getCreatedat() 
    {
        return createdat;
    }
    public void setUpdatedat(Date updatedat) 
    {
        this.updatedat = updatedat;
    }

    public Date getUpdatedat() 
    {
        return updatedat;
    }

}
